<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>js同时运动动画(多属性)</title>
    <style>
        body{
            margin: 0;
            padding: 0;
        }
        ul, li{
            list-style: none;
        }
        ul li{
            width: 200px;
            height: 200px;
            background: yellow;
            margin-bottom: 20px;
            border: 4px solid #000;
            filter: opacity(30);
            opacity: .3;
        }
    </style>
    <script src="../js/new_move.js"></script>
    <script>
        window.onload = function(){
            var aLi = document.getElementsByTagName('li');
            for(let i of aLi){
                i.onmouseover = function(){
                    startMove(i, {'width': 201, 'height': 500, 'opacity': 100}, function(){
                        console.log(i, 'mouseover');
                    });
                }
                i.onmouseout = function(){
                    startMove(i, {'width': 200, 'height': 200, 'opacity': 30});
                }
            }
        }
    </script>
</head>
<body>
    <ul>
        <li id="li1"></li>
        <li id="li2"></li>
    </ul>
</body>
</html>